package
{
	import assets.images.TopHeaderBitmap;
	
	import com.jxl.apple.components.BackButton;
	import com.jxl.apple.components.HeaderLabel;
	import com.jxl.apple.components.ListItem;
	import com.jxl.apple.components.MenuInputText;
	import com.jxl.apple.components.PushButton;
	
	import flash.display.Graphics;
	import flash.display.Sprite;
	
	public class AppleDeviceComponentsExamples extends Sprite
	{
		public function AppleDeviceComponentsExamples()
		{
			super();
			
			stage.scaleMode = "noScale";
			stage.align = "TL";
			
			var g:Graphics = graphics;
			g.beginFill(0xFFFFFF);
			g.lineStyle(0, 0x999999);
			g.drawRect(0, 0, 320, 480);
			g.endFill();
			
			var topHeader:TopHeaderBitmap = new TopHeaderBitmap();
			addChild(topHeader);
			
			var backButton:BackButton = new BackButton();
			addChild(backButton);
			backButton.x = backButton.y = 8;
			backButton.label = "Main";
			
			var headerLabel:HeaderLabel = new HeaderLabel();
			addChild(headerLabel);
			headerLabel.text = "Label";
			headerLabel.x = 150;
			headerLabel.y = 8;
			
			var listItem:ListItem = new ListItem();
			addChild(listItem);
			listItem.label = "Header 1";
			listItem.status = "20";
			listItem.x = 8;
			listItem.y = topHeader.y + topHeader.height + 8;
			listItem.width = 304;
			
			var menuInputText:MenuInputText = new MenuInputText();
			addChild(menuInputText);
			menuInputText.x = 8;
			menuInputText.y = listItem.y + listItem.height + 8;
			menuInputText.prompt = "Search";
			menuInputText.width = 304;
			
			var pushButton:PushButton = new PushButton();
			addChild(pushButton);
			pushButton.label = "Login";
			pushButton.x = 160 - (pushButton.width / 2);
			pushButton.y = 140;
			
			var debug:Debug = new Debug();
			addChild(debug);
			debug.y = 250;
			
			Debug.logHeader();
			Debug.log("Ready to rock.");
			
			
		}
	}
}